﻿using System;
using System.Collections.Generic;
using RaidTeamManager.Model;

namespace RaidTeamManager.Design
{
    public class DesignDataService : IDataService
    {
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to create design time data
            var raiders = new List<RaiderInfo>();
            raiders.Add(new RaiderInfo(){CharacterName = "TestChar1", RealmName = "TestRealm1", AverageItemLevel = 497});
            raiders.Add(new RaiderInfo() { CharacterName = "TestChar2", RealmName = "TestRealm1", AverageItemLevel = 502});
            raiders.Add(new RaiderInfo() { CharacterName = "TestChar3", RealmName = "TestRealm1", AverageItemLevel = 500});
            raiders.Add(new RaiderInfo() { CharacterName = "TestChar4", RealmName = "TestRealm1", AverageItemLevel = 488});
            raiders.Add(new RaiderInfo() { CharacterName = "TestChar5", RealmName = "TestRealm1", AverageItemLevel = 463});
            var item = new DataItem("Raid Team Manager", raiders, "Stormrage");
            callback(item, null);
        }
    }
}